<!DOCTYPE html>
<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="format-detection" content="telephone=no"/>
    <!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
    <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1"/>
    <!--, width=device-width, height=device-height, target-densitydpi=device-dpi-->
    <title>MicroLive</title>
    <!-- 最新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">

    <!--<script src="js/lib/jsviews/jsrender.js" type="text/javascript"></script>-->
    <!--<script src="js/lib/jsviews/jquery.observable.js" type="text/javascript"></script>-->
    <!--<script src="js/lib/jsviews/jquery.views.js" type="text/javascript"></script>-->

    <!--<script src="js/lib/underscore-1.5.2.js" type="text/javascript"></script>-->

    <link rel="stylesheet" type="text/css" href="css/index.css"/>

    <script src="js/lib/LAB.js" type="text/javascript"></script>
    <script type="text/javascript">
        (function () {
            var url = "./";
            $LAB.script(url + "js/lib/jquery-1.10.2.min.js").wait()
                    .script(url + "js/core/nenglong.core.js").wait()
                    .script(url+"bootstrap/js/bootstrap.min.js")
                    .script(url + "js/core/jsmapbase.js").wait()
                    .script(url + "jsmapModule.js")
                    .wait(function () {
                        //核心框架的全局变量配置
                        $NL.config.urlRoot = url;
                        $NL.config.isDebug = true;
                        //加载全站的jsMap描述，并执行服务器脚本压缩
                        NengLong.JsMap.init("microlive", onload);
                    })
        })();


        function onload() {
            //加载路由模块
            $NL.script.loadModule("route", function () {
                //mvc框架的全局变量配置，如果使用其它模板引擎，则实现其它引擎并设置currentTemplateEngine
                NengLong.Mvc.Config.platformType = "MicroLive";
                NengLong.Mvc.Config.platformUrlBase = $NL.config.urlRoot + "";
                NengLong.Mvc.Config.templateUrlBase = $NL.config.urlRoot + ""; //$NL.config.urlRoot + "View/Admin/";
                NengLong.Mvc.Config.controlUrlBase = $NL.config.urlRoot + "Component/";
                //NengLong.Mvc.Config.httpInterfaceUrl = $NL.config.urlRoot + "WebHttp/Action.ashx";
                //NengLong.Mvc.Config.httpLoginUrl = $NL.config.urlRoot + "Mobile/Login.ashx";//<%=JavaScriptEncode(LoginUrl)%>;
                //数据接口地址
                NengLong.Mvc.Config.httpInterfaceUrl = "http://www.gostudio.cn/MicroLiveApi/index.php";
//                NengLong.Mvc.Config.httpLoginUrl = "http://tech-tfs:81/jxpt/WebHttp/Login.ashx";
                //网站代理地址
//                NengLong.Mvc.Config.httpProxyUrl = "http://tech-sk:81/view/proxy1.ashx?1=1";
                //初始路由
                var routeKey = NengLong.Mvc.Route.getRouteKey();
                if (routeKey == null) routeKey = "microlive";
                NengLong.Mvc.Page.navigate(routeKey);
            });
        }
    </script>
</head>
<body style="">
<div id="div_Main" class="">
</div>

<!--<script type="text/javascript" src="cordova.js"></script>-->
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript">
    app.initialize();
</script>
</body>
</html>
